<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Threejs</title>

  <style>
    body {
      overflow: hidden;
      margin: 0px;
    }
    .contanier {
      background-color: antiquewhite;
    }
  </style>
</head>
<body>
  <div id="webgl" class="contanier"></div>

  vscode 安装 live server 插件，右键 -> open with live server

  <script type="importmap">
    {
      "imports": {
        "three": "../build/three.module.js",
        "OrbitControls": "../build/OrbitControls.js",
        "Stats": "../build/stats.module.js",
        "GUI": "../build/lil-gui.module.min.js"
      }
    }
  </script>

  <!-- <script type="module" src="./basic.js"></script> -->
  <script type="module" src="./light.js"></script>
</body>
</html>